<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/appliaction/carmanagement/Carmanagement.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/appliaction/carmanagement/Carmanagement.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'CarManagementId',
                footer: "Foots",
                cnName: '汽车管理表',
                name: 'carmanagement/Carmanagement',
                url: "/Carmanagement/",
                sortName: "CreateTime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'CarManagementId',title:'主键',type:'string',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'CarBrand',title:'厂牌型号',type:'string',width:110,align:'left',sort:true},
                       {field:'CarLicense',title:'车牌号',type:'string',width:110,align:'left'},
                       {field:'DriverName',title:'司机姓名',type:'string',width:110,align:'left'},
                       {field:'CarCompany',title:'所属公司',type:'string',width:110,align:'left'},
                       {field:'CarLong',title:'车长（单位：米）',type:'decimal',width:110,align:'left'},
                       {field:'CarWidth',title:'车宽（单位：米）',type:'decimal',width:110,align:'left'},
                       {field:'CarHight',title:'车高（单位：米）',type:'decimal',width:110,align:'left'},
                       {field:'CarColor',title:'颜色',type:'string',width:110,align:'left'},
                       {field:'CarBuyDate',title:'购置日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CarRunLicence',title:'营运证号',type:'string',width:110,align:'left'},
                       {field:'InsuranceOverDate',title:'保险到期日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CheckOverDate',title:'车检到期日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'InsuranceNumber',title:'保养公里数设置',type:'decimal',width:110,align:'left'},
                       {field:'CarImg',title:'车辆照片',type:'string',width:120,align:'left'},
                       {field:'InsuranceImg',title:'保险卡照片',type:'string',width:120,align:'left'},
                       {field:'CreateName',title:'创建人',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateName',title:'修改人',type:'string',width:110,align:'left'},
                       {field:'UpdateTime',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDel',title:'逻辑删除标记，0 表示未删除，1 表示已删除',type:'int',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
